﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/Layouts/Admin.Master" AutoEventWireup="true"
    CodeBehind="UserInfo.aspx.cs" Inherits="MLM.AdminCP.Pages.UserInfo" meta:resourcekey="PageResource1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lbUserID" runat="server" Text="User Information Manager" meta:resourcekey="lbUserIDResource1"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <telerik:RadGrid ID="RadUserInfoGrid" runat="server" AllowFilteringByColumn="True"
        DataSourceID="GroupUserInfoEds" AllowPaging="True" AllowSorting="True" GridLines="None"
        ShowGroupPanel="True"  AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
        AllowAutomaticDeletes="True" ShowFooter="True" ShowStatusBar="True" meta:resourcekey="RadUserInfoGridResource1">
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="UserInfoID" DataSourceID="GroupUserInfoEds"
            ShowHeader="true" ShowHeadersWhenNoRecords="true" AllowAutomaticInserts="true"
            CommandItemDisplay="TopAndBottom">
            <%--<MasterTableView ShowFooter="false" DataKeyNames="ProductID" EditMode="InPlace" CommandItemDisplay="TopAndBottom">--%>
            <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true">
                <%--ExportToPdfText="Export to Pdf">--%></CommandItemSettings>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="UserID" DataType="System.Int64" HeaderText="UserID"
                    SortExpression="UserID" UniqueName="UserID" meta:resourcekey="GridBoundColumnResource1">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserInfoID" HeaderText="UserInfoID" SortExpression="UserInfoID"
                    UniqueName="UserInfoID" DataType="System.Int64" ReadOnly="True" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Mobile" HeaderText="Mobile" SortExpression="Mobile"
                    UniqueName="Mobile" meta:resourcekey="GridBoundColumnResource2">
                </telerik:GridBoundColumn>
                <%--<telerik:GridBoundColumn DataField="HomePhone" HeaderText="HomePhone" SortExpression="HomePhone"
                    UniqueName="HomePhone">
                </telerik:GridBoundColumn>--%>
                <telerik:GridBoundColumn DataField="Email" HeaderText="Email" SortExpression="Email"
                    UniqueName="Email" meta:resourcekey="GridBoundColumnResource3">
                </telerik:GridBoundColumn>
                <%--<telerik:GridBoundColumn DataField="CountryID" DataType="System.Int64" HeaderText="CountryID"
                    SortExpression="CountryID" UniqueName="CountryID">
                </telerik:GridBoundColumn>--%>
                <telerik:GridCheckBoxColumn DataField="Gender" DataType="System.Boolean" HeaderText="Gender"
                    SortExpression="Gender" UniqueName="Gender" meta:resourcekey="GridCheckBoxColumnResource1" Visible="False">
                </telerik:GridCheckBoxColumn>
                <%--<telerik:GridBoundColumn DataField="DateOfBirth" DataType="System.DateTime" HeaderText="DateOfBirth"
                    SortExpression="DateOfBirth" UniqueName="DateOfBirth">
                </telerik:GridBoundColumn>--%>
                <%--<telerik:GridBoundColumn DataField="DateOfBirth" HeaderText="DateOfBirth" SortExpression="DateOfBirth"
                    UniqueName="DateOfBirth" DataType="System.DateTime">
                </telerik:GridBoundColumn>--%>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                    meta:resourcekey="GridEditCommandColumnResource1">
                    <ItemStyle CssClass="MyImageButton"></ItemStyle>
                </telerik:GridEditCommandColumn>
                <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                    UniqueName="DeleteColumn" meta:resourcekey="GridButtonColumnResource1">
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings EditFormType="Template">
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
                <FormTemplate>
                    <table id="Table2" style="border-collapse: collapse; padding-left: 20; width: 90%">
                        <tr class="EditFormHeader" style="height: 30px">
                            <td style="font-size: small" colspan="2">
                                <b>
                                    <asp:Label ID="Label1" runat="server" Text="User Infomation" meta:resourcekey="Label1Resource1"></asp:Label></b>
                            </td>
                        </tr>
                        <tr style="height: 30px">
                            <td class="titlename">
                                <asp:Label ID="lbUserID" runat="server" Text="UserID:" meta:resourcekey="lbUserIDResource2"></asp:Label>
                            </td>
                            <td style="width: 50">
                                <telerik:RadComboBox CssClass="rancombox" runat="server" ID="RadComboBox1" DataTextField="UserID"
                                    DataValueField="UserID" DataSourceID="GroupUserSettingEds" SelectedValue='<%# Bind("UserID") %>'
                                    AutoPostBack="True" EnableLoadOnDemand="True" meta:resourcekey="RadComboBox1Resource1">
                                    <HeaderTemplate>
                                        <ul>
                                            <li style="list-style-type: none" class="col1">User ID</li>
                                        </ul>
                                    </HeaderTemplate>
                                </telerik:RadComboBox>
                            </td>
                            <td class="titlename">
                                <asp:Label ID="lbCountry" runat="server" Text="Country:" meta:resourcekey="lbCountryResource1"></asp:Label>
                            </td>
                            <td style="width: 50">
                                <telerik:RadComboBox CssClass="randombox" runat="server" ID="RadComboBox3" DataTextField="Name"
                                    DataValueField="CountryID" DataSourceID="GroupCountryEds" SelectedValue='<%# Bind("CountryID") %>'
                                    AutoPostBack="True" EnableLoadOnDemand="True" meta:resourcekey="RadComboBox3Resource1"
                                    AppendDataBoundItems="true">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Select Country" Value="" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr style="height: 30px">
                            <td class="titlename">
                                <asp:Label ID="lbMobile" runat="server" Text="Mobile:" meta:resourcekey="lbMobileResource1"></asp:Label>
                            </td>
                            <td style="width: 30">
                                <telerik:RadTextBox CssClass="radtextbox" ID="RadMaskedTextBox132" runat="server"
                                    Text='<%# Bind("Mobile") %>' LabelCssClass="" meta:resourcekey="RadMaskedTextBox132Resource1">
                                </telerik:RadTextBox>
                            </td>
                            <td class="titlename">
                                <asp:Label ID="lbHomePhone" runat="server" Text="Home Phone:" meta:resourcekey="lbHomePhoneResource1"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox CssClass="radtextbox" ID="RadTextBox3" runat="server" Text='<%# Bind("HomePhone") %>'
                                    LabelCssClass="" meta:resourcekey="RadTextBox3Resource1">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr style="height: 30px">
                            <td class="titlename">
                                <asp:Label ID="lbGender" runat="server" Text="Gender:" meta:resourcekey="lbGenderResource1"></asp:Label>
                            </td>
                            <td>
                            <tupa:OwCheckBox runat="server" Checked='<%# Bind("Gender")%>' ID="GenderChk"/>
                            <%--<asp:CheckBox runat="server" Checked='<%# Bind("Gender")%>' ID="dsdsdsdds"/>--%>
                               <%-- <telerik:RadComboBox runat="server" SelectedValue='<%# Bind("Gender") %>' ID="GenderCombo"
                                    meta:resourcekey="GenderComboResource1" AppendDataBoundItems="true">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Male" Value="True" true meta:resourcekey="RadComboBoxItemResource1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Female" Value="True" false meta:resourcekey="RadComboBoxItemResource2" />
                                    </Items>
                                </telerik:RadComboBox>--%>
                            </td>
                            <td class="titlename">
                                <asp:Label ID="lbEmail" runat="server" Text="Email:" meta:resourcekey="lbEmailResource1"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox CssClass="radtextbox" ID="RadTextBox1" runat="server" Text='<%# Bind("Email") %>'
                                    LabelCssClass="" meta:resourcekey="RadTextBox1Resource1">
                                </telerik:RadTextBox>                                
                            </td>
                        </tr>
                        <tr class="titlename">
                            <td>
                                <asp:Label ID="lbDateOfBirth" runat="server" Text="Date Of Birth:" meta:resourcekey="lbDateOfBirthResource1"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadDatePicker ID="RadDatePicker1" runat="server" MinDate="1900-01-01" TabIndex="4"
                                    Culture="en-US" meta:resourcekey="RadDatePicker1Resource1">
                                    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                                    </Calendar>
                                    <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" TabIndex="4">
                                    </DateInput>
                                    <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" TabIndex="4" />
                                </telerik:RadDatePicker>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-bottom: 10; padding-top: 10" colspan="2">
                                <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                    meta:resourcekey="btnUpdateResource1"></asp:Button>&nbsp;
                                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                    CommandName="Cancel" meta:resourcekey="btnCancelResource1"></asp:Button>
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
        </MasterTableView>
        <%--        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>--%>
        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <asp:EntityDataSource ID="GroupUserInfoEds" runat="server" ConnectionString="name=MLMDataContext"
        DefaultContainerName="MLMDataContext" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="UserInfos" EntityTypeFilter=""
        Select="">
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="GroupUserSettingEds" runat="server" ConnectionString="name=MLMDataContext"
        DefaultContainerName="MLMDataContext" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="Users" EntityTypeFilter=""
        Select="">
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="GroupCountryEds" runat="server" ConnectionString="name=MLMDataContext"
        DefaultContainerName="MLMDataContext" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="Countries" EntityTypeFilter="Country"
        Select="">
    </asp:EntityDataSource>
</asp:Content>
<%--<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>--%>
